package org.opens.controller;

import org.opens.publisher.StudentPublisher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api/event/student")
public class StudentEventInvokeController {

    @Autowired
    private StudentPublisher studentPublisher;

    @RequestMapping(value = "/invoke")
    public void invoke() {
        studentPublisher.publish();
    }

}
